import CommonView from '@/components/Views/CommonView.vue'
import HomeView from '@/components/Views/HomeView.vue'
import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path:'/',
      name:'home',
      component:HomeView
    },
    {
      path:'/:adcode',
      name:'cityWeather',
      component:()=>import('../components/Views/CommonView.vue')
    },
  ],
})

export default router
